package com.bdqn.t320.ch13.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bdqn.t320.ch13.entity.Right;
import com.bdqn.t320.ch13.entity.User;
import com.bdqn.t320.ch13.mapper.RightMapper;
import com.bdqn.t320.ch13.mapper.UserMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class RightServiceImp extends ServiceImpl<RightMapper, Right> implements RightService {

    @Resource
    RightMapper rightMapper;

    @Override
    public List<Right> getRightByUsrIdBiz(Long usrId) {
        return rightMapper.getRightByUsrId(usrId);
    }
}
